home *** CD-ROM | disk | FTP | other *** search
/ Group 42-Sells Out! - The Information Archive / Group 42 Sells Out (Group 42) (1996).iso / faqs / csanftp.txt < prev    next >
Text File  |  1995-11-30  |  27KB  |  619 lines

  1. Archive-name: computer-security/anonymous-ftp-faq
  2. Post-Frequency: monthly
  3. Last-modified: 1995/4/05
  4. Version: 1.4
  5.  
  6. Anonymous FTP FAQ
  7.  
  8. Version: 2.01
  9. -------------------------------------------------------------------------------
  10. This Security FAQ is a resource provided by:
  11.  
  12.      Internet Security Systems, Inc.
  13.      2000 Miller Court West            Tel: (770) 441-2531
  14.      Norcross, Georgia  30071          Fax: (770) 441-2431
  15.  
  16.      - Internet Scanner ... the most comprehensive "attack simulator"
  17.      available. -
  18.  
  19. -------------------------------------------------------------------------------
  20. To get the newest updates of Security files check the following services:
  21.  
  22.      mail info@iss.net with "send index" in message
  23.      http://iss.net/
  24.      ftp iss.net /pub/
  25.  
  26. -------------------------------------------------------------------------------
  27.  
  28. How to Set up a Secure Anonymous FTP Site
  29.  
  30. The following is a FAQ on setting up a secure FTP Site. FTP sites are known for
  31. much abuse by transferring illegal files. They also open many oppurtunities for
  32. intruders to gain access via misconfigured setups. And lastly many versions of
  33. ftp servers have had security holes. This FAQ is intended to clean up this
  34. abuse by allowing administrators to go through this check list of steps to make
  35. sure their FTP is correctly configured and that they are running the most
  36. current ftp daemon.
  37.  
  38. This is organized in the following fashion, I am breaking into several parts as
  39. follows:
  40.  
  41.   1.  General Description of Setting up an "Anonymous" FTP server.
  42.   2.  Setting up a chrooted Secure Anonymous FTP server.
  43.   3.  OS Specific needed information and suggestions.
  44.         o  Older SVR2 and SVR3 system, RTU 6.0 (Masscomp, now Concurrent Real
  45.           Time UNIX), and AT&T 3B1 and 3B2 machines
  46.         o  HPUX
  47.         o  Solaris 2.x
  48.         o  SunOS
  49.   4.  Where to get other FTP daemons
  50.   5.  How to Know if your Anonymous FTP Server is Secure
  51.   6.  Archie
  52.  
  53. -------------------------------------------------------------------------------
  54.  
  55. 1. General Description of Setting up an "anonymous" ftp server.
  56.  
  57.   1.  Create the user ftp in /etc/passwd. Use a misc group. The user's home
  58.      directory will be ~ftp where ~ftp is the root you wish anonymous users to
  59.      see. Creating this user turns on anonymous ftp.
  60.  
  61.      Use an invalid password and user shell for better security. The entry in
  62.      the passwd file should look something like:
  63.  
  64.           ftp:*:400:400:Anonymous FTP:/home/ftp:/bin/true
  65.  
  66.   2.  Create the home directory ~ftp. Make the directory owned by root (NOT
  67.      ftp) with the same group as ftp. Thus, owner permissions are for root and
  68.      group permissions are for the anonymous users. Set the permissions for
  69.      ~ftp to 555 (read, nowrite, execute).
  70.  
  71.      [Warning:] Some MAN pages recommend making the ~ftp directory owned by
  72.      ftp. This is a big NO-NO, if you want any type of security on your system.
  73.  
  74.   3. Create the directory ~ftp/bin. This directory is owned by root (group e.g.
  75.      wheel) with permissions 111 (noread, nowrite, execute).
  76.  
  77.   4. Copy the program ls into ~ftp/bin. ls is owned by root with permissions
  78.      111 (noread, nowrite, execute). Any other commands you put in ~ftp/bin
  79.      should have the same permissions as well.
  80.  
  81.   5.  Make the directory ~ftp/etc. This directory is owned by root with
  82.      permissions 111.
  83.  
  84.   6.  Create from scratch the files /etc/passwd and /etc/group in ~ftp/etc.
  85.      These files should be mode 444. The passwd file should only contain root,
  86.      daemon, uucp, and ftp. The group file must contain ftp's group. Use your
  87.      /etc/passwd and /etc/group files as a template for creating passwd and
  88.      group files going to ~ftp/etc. You may even change the user names in this
  89.      file, they are used only for 'ls' command. So for example if all files in
  90.      your ~ftp/pub/linux hierarchy will be maintained by a real user 'balon'
  91.      with uid=156 you may put
  92.  
  93.           linux:*:156:120:Kazik Balon::
  94.  
  95.      in the ~ftp/etc/passwd file (regardless of his real username). Leave only
  96.      these users who will own files under ftp hierarchy (e.g. root, daemon,
  97.      ftp...) and definitely remove *ALL* passwords by replacing them with '*'
  98.      so the entry looks like:
  99.  
  100.           root:*:0:0:Ftp maintainer::
  101.           ftp:*:400:400: Anonymous ftp::
  102.  
  103.      For more security, you can just remove ~ftp/etc/passwd and ~ftp/etc/group
  104.      (the effect is that ls -l will not show the directories' group names).
  105.      Wuarchive ftp daemon (and some others) have some extensions based on the
  106.      contents of the group/passwd files, so read the appropriate documentation.
  107.  
  108.   7.  Make the directory ~ftp/pub. This directory is owned by you and has the
  109.      same group as ftp with permissions 555. On most systems (like SunOS) you
  110.      may want to make this directory 2555, ie. set-group-id, in order to create
  111.      new files with the same group ownership.
  112.  
  113.      Files are left here for public distribution. All folders inside ~ftp/pub
  114.      should have the same permissions as 555.
  115.  
  116.      [Warning:] Neither the home directory (~ftp) nor any directory below it
  117.      should be owned by ftp! No files should be owned by ftp either. Modern ftp
  118.      daemons support all kinds of useful commands, such as chmod, that allow
  119.      outsiders to undo your careful permission settings. They also have
  120.      configuration options like the following (WuFTP) to disable them:
  121.  
  122.      # all the following default to "yes" for everybody
  123.      delete          no      guest,anonymous         # delete permission?
  124.      overwrite       no      guest,anonymous         # overwrite permission?
  125.      rename          no      guest,anonymous         # rename permission?
  126.      chmod           no      anonymous               # chmod permission?
  127.      umask           no      anonymous               # umask permission?
  128.  
  129.   8.  If you wish to have a place for anonymous users to leave files, create
  130.      the directory ~ftp/pub/incoming. This directory is owned by root with
  131.      permissions 733. Do a 'chmod +t ~ftp/pub/incoming'. The ftp daemon will
  132.      normally not allow an anonymous user to overwrite an existing file, but a
  133.      normal user of the system would be able to delete anything. By setting the
  134.      mode to '1733' you prevent this from happening. In wuftpd you may
  135.      configure the daemon to create new files with permissions '600' owned by
  136.      root or any other user. Many times, incoming directories are abused by
  137.      exchanging pirated and pornographic material. Abusers often create hidden
  138.      directories there for this purpose. Making the incoming directory
  139.      unreadable by anonymous ftp helps to some extent. With ordinary ftp severs
  140.      there is no way to prevent directories being created in incoming. The
  141.      WUarchive ftp server can limit uploads to certain directories and can
  142.      restrict characters used in file names like this:
  143.  
  144.      # specify the upload directory information
  145.      upload  /var/spool/ftp  *       no
  146.      upload  /var/spool/ftp  /incoming       yes     ftp     staff   0600    nodirs
  147.  
  148.      # path filters                                                                                  # path-filter...
  149.      path-filter  anonymous  /etc/msgs/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
  150.      path-filter  guest      /etc/msgs/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
  151.  
  152.      Suggestion: Create an extra file-system for your ftp-area (or at least for
  153.      your incoming-area) to prevent a denial-of-service attack by filling your
  154.      disk with garbage (inside your incoming directory).
  155.  
  156.      If you have wuftpd you may want to add some ftp extensions like
  157.      compression/decompression 'on the fly' or creation of tar files for the
  158.      directory hierarchies. Get the appropriate sources (gzip, gnutar,
  159.      compress), compile them and link statically, put in the ~ftp/bin directory
  160.      and edit the appropriate file containing the definitions of the allowed
  161.      conversions. /usr/bin/tar is already statically-linked. You may wish to
  162.      use gnu tar anyway.
  163.  
  164.      Gary Mills wrote a small program to support the following:
  165.  
  166.      To do tar and compress, he wrote a tiny program called `pipe', and
  167.      statically-linked it. His /etc/ftpconversions file looks like this:
  168.  
  169.      #strip prefix:strip postfix:addon prefix:addon postfix:external command:
  170.      #types:options:description
  171.      :.Z:  :  :/bin/compress -d -c %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS
  172.      :-z:  :  :/bin/compress -d -c %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS
  173.      :  :  :.Z:/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS
  174.      :  :  :.tar:/bin/tar cf - %s:T_REG|T_DIR:O_TAR:TAR
  175.      :  :  :.tar.Z:/bin/pipe /bin/tar cf - %s | /bin/compress -c:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS
  176.      :  :  :.tar:/bin/gtar -c -f - %s:T_REG|T_DIR:O_TAR:TAR
  177.      :  :  :.tar.Z:/bin/gtar -c -Z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS
  178.      :  :  :.tar.gz:/bin/gtar -c -z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP
  179.  
  180.      Here it is:
  181.  
  182.      -----------------8<-------------cut---------------
  183.  
  184.      /* pipe.c: exec two commands in a pipe */
  185.  
  186.      #define NULL (char *)0
  187.      #define MAXA 16
  188.  
  189.      main(argc, argv) int argc; char *argv[]; {
  190.      char *av1[MAXA], *av2[MAXA];
  191.      int i, n, p[2], cpid;
  192.  
  193.      i = 0; n = 0;
  194.      while ( ++i < argc && n < MAXA ) {
  195.      if ( *argv[i] == '|' && *(argv[i]+1) == '\0' ) break;
  196.      av1[n++] = argv[i];
  197.      }
  198.      if ( n == 0 ) uexit();
  199.      av1[n] = NULL;
  200.      n = 0;
  201.      while ( ++i < argc && n < MAXA )
  202.      av2[n++] = argv[i];
  203.      if ( n == 0 ) uexit();
  204.      av2[n] = NULL;
  205.      if ( pipe(p) != 0 ) exit(1);
  206.      if ( ( cpid = fork() ) == (-1) ) exit(1);
  207.      else if ( cpid == 0 ) {
  208.      (void)close(p[0]);
  209.      (void)close(1);
  210.      (void)dup(p[1]);
  211.      (void)close(p[1]);
  212.      (void)execv(av1[0], av1);
  213.      _exit(127);
  214.      }
  215.      else {
  216.      (void)close(p[1]);
  217.      (void)close(0);
  218.      (void)dup(p[0]);
  219.      (void)close(p[0]);
  220.      (void)execv(av2[0], av2);
  221.      _exit(127);
  222.      }
  223.      /*NOTREACHED*/
  224.      }
  225.      uexit() {
  226.      (void)write(2, "Usage: pipe  | \n", 34);
  227.      exit(1);
  228.      }
  229.  
  230.      -------- CUT HERE ------------
  231.  
  232.   9.  Other things to do:
  233.  
  234.      as root:
  235.  
  236.           touch ~ftp/.rhosts
  237.           touch ~ftp/.forward
  238.           chmod 400 ~ftp/.rhosts
  239.           chmod 400 ~ftp/.forward
  240.  
  241.      ie. make these files zero-length and owned by root.
  242.  
  243.      Due to the last /bin/mail bugs in SunOS:
  244.  
  245.           touch /usr/spool/mail/ftp; chmod 400 /usr/spool/mail/ftp
  246.  
  247.      Consider an email-alias for the ftp-admin(s) to provide an email-address
  248.      for problems-reports.
  249.  
  250.      If you are mounting some disks from other machines (or even your own) to
  251.      the ~ftp hierarchy, mount it read-only. The correct entry for the
  252.      /etc/fstab (on the host with ftpd) is something like:
  253.  
  254.           other:/u1/linux /home/ftp/pub/linux nfs
  255.           ro,noquota,nosuid,intr,bg 1 0
  256.  
  257.      This mounts under /home/ftp/pub/linux the disk from host 'other' with no
  258.      quota, no 'suid' programs (just in case), interruptible (in case 'other'
  259.      goes down) and 'bg' - so if 'other' is down when you reboot it will not
  260.      stop you trying to mount /home/ftp/pub/linux all over again.
  261.  
  262. -------------------------------------------------------------------------------
  263.  
  264. 2. Setting up a chrooted Secure Anonymous ftp server.
  265.  
  266. This part was contributed by Marcus J Ranum <mjr@tis.com>
  267.  
  268.   1. Build a statically linked version of ftpd and put it in ~ftp/bin. Make
  269.      sure it's owned by root.
  270.  
  271.   2.  Build a statically linked version of /bin/ls if you'll need one. Put it
  272.      in ~ftp/bin. If you are on a Sun, and need to build one, there's a ported
  273.      version of the BSD net2 ls command for SunOs on ftp.tis.com:
  274.      pub/firewalls/toolkit/patches/ls.tar.Z Make sure it's owned by root.
  275.  
  276.   3.  Chown ~ftp to root and make it mode 755 THIS IS VERY IMPORTANT
  277.  
  278.   4.  Set up copies of ~ftp/etc/passwd and ~ftp/etc/group just as you would
  279.      normally, EXCEPT make 'ftp's home directory '/' -- make sure they are
  280.      owned by root.
  281.  
  282.   5.  Write a wrapper to kick ftpd off and install it in /etc/inetd.conf The
  283.      wrapper should look something like: (assuming ~ftp = /var/ftp)
  284.  
  285.      main()
  286.      {
  287.      if(chdir("/var/ftp")) {
  288.              perror("chdir /var/ftp");
  289.              exit(1);
  290.      }
  291.      if(chroot("/var/ftp")) {
  292.              perror("chroot /var/ftp");
  293.              exit(1);
  294.      }
  295.      /* optional: seteuid(FTPUID); */
  296.      execl("/bin/ftpd","ftpd","-l",(char *)0);
  297.      perror("exec /bin/ftpd");
  298.      exit(1);
  299.      }
  300.  
  301.      Options:
  302.  
  303.      You can use 'netacl' from the toolkit or tcp_wrappers to achieve the same
  304.      effect.
  305.  
  306.      We use 'netacl' to switch so that a few machines that connect to the FTP
  307.      service *don't* get chrooted first. This makes transferring files a bit
  308.      less painful.
  309.  
  310.      You may also wish to take your ftpd sources and find all the places where
  311.      it calls seteuid() and remove them, then have the wrapper do a setuid(ftp)
  312.      right before the exec. This means that if someone knows a hole that makes
  313.      them "root" they still won't be. Relax and imagine how frustrated they
  314.      will be.
  315.  
  316.      If you're hacking ftpd sources, I suggest you turn off a bunch of the
  317.      options in ftpcmd.y by unsetting the "implemented" flag in ftpcmd.y. This
  318.      is only practical if your FTP area is read-only.
  319.  
  320.   6.  As usual, make a pass through the FTP area and make sure that the files
  321.      are in correct modes and that there's nothing else in there that can be
  322.      executed.
  323.  
  324.   7.  Note, now, that your FTP area's /etc/passwd is totally separated from
  325.      your real /etc/passwd. This has advantages and disadvantages.
  326.  
  327.   8.  Some stuff may break, like syslog, since there is no /dev/log. Either
  328.      build a version of ftpd with a UDP-based syslog() routine or run a second
  329.      syslogd based on the BSD Net2 code, that maintains a unix-domain socket
  330.      named ~ftp/dev/log with the -p flag.
  331.  
  332.      REMEMBER:
  333.  
  334.      If there is a hole in your ftpd that lets someone get "root" access they
  335.      can do you some damage even chrooted. It's just lots harder. If you're
  336.      willing to hack some code, making the ftpd run without permissions is a
  337.      really good thing. The correct operation of your hacked ftpd can be
  338.      verified by connecting to it and (while it's still at the user prompt) do
  339.      a ps-axu and verify that it's not running as root.
  340.  
  341. -------------------------------------------------------------------------------
  342.  
  343. 3. OS Specific needed information and suggestions.
  344.  
  345. These machines may need dev/tcp:
  346.  
  347.    * Older SVR2 and SVR3 system
  348.    *  RTU 6.0 (Masscomp, now Concurrent Real Time UNIX),
  349.    * AT&T 3B1 and 3B2 machines
  350.  
  351. [dev/tcp]
  352.  
  353. These ftpd implementations may require a ~ftp/dev/tcp in order for anonymous
  354. ftp to work.
  355.  
  356. You have to create a character special device with the appropriate major and
  357. minor device numbers. The appropriate major and minor numbers of ~ftp/dev/tcp
  358. are what the major and minor numbers of /dev/tcp are.
  359.  
  360. The ~ftp/dev is a directory and ~ftp/dev/tcp is a character special device.
  361. Make them owned and grouped by root. Permissions for ~ftp/dev is root
  362. read/write/exec and other & group read and exec. The permissions for
  363. ~ftp/dev/tcp is root read/write, other & group read.
  364.  
  365. HPUX
  366.  
  367. [Logging] If you're using HP's native ftpd, the line in /etc/inetd.conf should
  368. execute ftpd -l, which does extra logging.
  369.  
  370. Solaris 2.x
  371.  
  372. [Script] Solaris' man page contains a script for installing anonymous ftpd
  373. which saves time. You may still want to check over your anonymous ftpd for
  374. vulnerabilities.
  375.  
  376. Command for reading the man page is:
  377.  
  378.      $ man ftpd
  379.  
  380. SunOS
  381.  
  382. [Libraries] To set up SunOS to use its shared dynamic libraries, follow these
  383. steps:
  384.  
  385.   1.  Create the directory ~ftp/usr. This directory is owned by root with
  386.      permissions 555.
  387.  
  388.   2.  Create the directory ~ftp/usr/lib. This directory is owned by root with
  389.      permissions 555.
  390.  
  391.   3.  Copy the runtime loader ld.so into ~ftp/usr/lib for use by ls. ld.so is
  392.      owned by root with permissions 555.
  393.  
  394.   4.  Copy the latest version of the shared C library, libc.so.* into
  395.      ~ftp/usr/lib for use by ls.
  396.  
  397.      libc.so.* is owned by root with permissions 555.
  398.  
  399.      [Note:] 4.1.2(or above) users: you also need to copy /usr/lib/libdl.so.*
  400.      to ~ftp/lib.
  401.  
  402.   5.  Create the directory ~ftp/dev. This directory is owned by root with
  403.      permissions 111.
  404.  
  405.   6.  ~ftp/dev/zero is needed by the runtime loader. Move into the directory
  406.      ~ftp/dev and create it with the command:
  407.  
  408.           mknod zero c 3 12
  409.  
  410.      chown ~ftp/dev/zero to root. Make sure it's readable.
  411.  
  412.      [Warning:] For novices: Don't try to copy /dev/zero to ~ftp/dev/zero! This
  413.      is an endless file of zeroes and it will completely fill your filesystem!
  414.  
  415.   7.  If you want to have the local time showing when people connect, create
  416.      the directory ~ftp/usr/share/lib/zoneinfo and copy
  417.      /usr/share/lib/zoneinfo/localtime
  418.  
  419.   8.  If you are bothered by the need for copying your libraries so that you
  420.      can use Sun's 'ls', which is dynamically linked, you can try to get a
  421.      statically linked copy of 'ls' instead. The CD-ROM that contains Sun's OS
  422.      has a statically-linked version of ls. In this case, you can dispense with
  423.      steps #6-8.
  424.  
  425.      Statically linked versions may be available from the following sources:
  426.  
  427.      If you want a statically linked "ls" get the GNU fileutils off a archive
  428.      site near you and statically link it.
  429.  
  430.      [Logging] Sun's standard ftpd logs *all* password information. To correct
  431.      it, install patch:
  432.  
  433.      101640-03       SunOS 4.1.3: in.ftpd logs password info when -d option is
  434.      used.
  435.  
  436.      In /etc/inetd.conf find the line that starts with "ftp". At the end of
  437.      that line, it should read "in.ftpd". Change that to "in.ftpd -dl". In
  438.      /etc/syslog.conf, add a line that looks like:
  439.  
  440.  
  441.      daemon.*                                        /var/adm/daemonlog
  442.  
  443.      The information can be separated (or like SunOs4.1.1 does not recognize
  444.      daemon.* so it requires the following form), such as:
  445.  
  446.      daemon.info                                    /var/adm/daemon.info
  447.      daemon.debug                                   /var/adm/daemon.debug
  448.      daemon.err                                     /var/adm/daemon.err
  449.  
  450.      Note that the whitespace between the two columns must include at least one
  451.      TAB character, not just spaces, or it won't work. Of course your log file
  452.      could be anything you want. Then, create the logfile (touch
  453.      /var/adm/daemonlog should do). Finally, restart inetd and syslogd, either
  454.      individually, or by rebooting the system. You should be good to go. If you
  455.      do not install the patch, make sure the log file is owned by root and mode
  456.      600, as the ftp daemon will log *everything*, including users' passwords.
  457.  
  458.      [Warning:] You want to make all logs root only readable for security
  459.      reasons If a user mistypes his password for his username, it could be
  460.      compromised if anyone can read the log files.
  461.  
  462. -------------------------------------------------------------------------------
  463.  
  464. 4. Where to get other FTP daemons
  465.  
  466.    *  Wuarchive FTP 2.4- A secure FTP daemon that allows improved
  467.      access-control, logging, pre-login banners, and is very configurable:
  468.  
  469.      Can be ftp'd from ftp.uu.net in "/networking/ftp/wuarchive-ftpd"
  470.      directory. Be certain to verify the checksum information to confirm that
  471.      you have retrieved a valid copy. [Warning: Older versions of Wu-FTP are
  472.      extremely insecure and in some cases have been trojaned.]
  473.  
  474.                              BSD        SVR4
  475.           File               Checksum   Checksum    MD5 Digital Signature
  476.           -----------------  --------   ---------   --------------------------------
  477.           wu-ftpd-2.4.tar.Z  38213  181  20337 362  cdcb237b71082fa23706429134d8c32e
  478.           patch_2.3-2.4.Z    09291    8  51092  16  5558a04d9da7cdb1113b158aff89be8f
  479.  
  480.    *  For DECWRL ftpd, sites can obtain version 5.93 via anonymous FTP from
  481.      gatekeeper.dec.com in the "/pub/misc/vixie" directory.
  482.  
  483.                              BSD        SVR4
  484.           File               Checksum   Checksum    MD5 Digital Signature
  485.           -----------------  --------   --------- --------------------------------
  486.           ftpd.tar.gz        38443  60  1710 119  ae624eb607b4ee90e318b857e6573500
  487.  
  488.    *  For BSDI systems, patch 005 should be applied to version 1.1 of the
  489.      BSD/386 software. You can obtain the patch file via anonymous FTP from
  490.      ftp.bsdi.com in the "/bsdi/patches-1.1" directory.
  491.  
  492.                              BSD        SVR4
  493.           File               Checksum   Checksum    MD5 Digital Signature
  494.           -----------------  --------   ---------   --------------------------------
  495.           BU110-005          35337 272  54935 543   1f454d4d9d3e1397d1eff0432bd383cf
  496.  
  497.    *  Public Domain Sources:
  498.  
  499.           ftp.uu.net ~ftp/systems/unix/bsd-sources/libexec/ftpd
  500.           gatekeeper.dec.com ~ftp/pub/DEC/gwtools/ftpd.tar.Z
  501.  
  502. -------------------------------------------------------------------------------
  503.  
  504. 5. How to Know if your Anonymous FTP Server is Secure
  505.  
  506. This section is intended for the administrator to go down a small check list of
  507. things to make sure his server is not easily compromised.
  508.  
  509.   1.  Check to make sure your ftp server does not have SITE EXEC command by
  510.      telneting to port 21 and typing SITE EXEC. If your ftp daemon has SITE
  511.      EXEC make sure it is the most current version (ie, Wu-FTP 2.4). In older
  512.      versions this allows anyone to gain shell via port 21.
  513.  
  514.   2.  Check to make sure no one can log in and make files or directories in the
  515.      main directory. If anyone can log in as anonymous FTP and make files such
  516.      as .rhosts and .forward, instant access is granted to any intruder.
  517.  
  518.   3.  Check to make sure the main directory is NOT owned by ftp. If it is owned
  519.      by FTP, an intruder could SITE CHMOD 777 the main directory and then plant
  520.      files to give him instant access. SITE CHMOD command should be removed
  521.      because anonymous users do not need any extra priviledges.
  522.  
  523.   4.  Check to make sure NO files or directories are owned by ftp. If they are,
  524.      it is possible an intruder could replace them with his own trojan
  525.      versions.
  526.  
  527.   5.  There were several bugs in old daemons, so it is very important to make
  528.      sure you are running the most current ftp daemons.
  529.  
  530. -------------------------------------------------------------------------------
  531.  
  532. 6. Archie
  533.  
  534. Searches FTP sites for programs. Login into these sites as archie or use client
  535. software for faster access. To get your own anonymous site added to Archie's
  536. search list, e-mail archie-updates@bunyip.com.
  537.  
  538.     archie.ac.il               132.65.20.254    (Israel server)
  539.     archie.ans.net             147.225.1.10     (ANS server, NY (USA))
  540.     archie.au                  139.130.4.6      (Australian Server)
  541.     archie.doc.ic.ac.uk        146.169.11.3     (United Kingdom Server)
  542.     archie.edvz.uni-linz.ac.at 140.78.3.8       (Austrian Server)
  543.     archie.funet.fi            128.214.6.102    (Finnish Server)
  544.     archie.internic.net        198.49.45.10     (AT&T server, NY (USA))
  545.     archie.kr                  128.134.1.1      (Korean Server)
  546.     archie.kuis.kyoto-u.ac.jp  130.54.20.1      (Japanese Server)
  547.     archie.luth.se             130.240.18.4     (Swedish Server)
  548.     archie.ncu.edu.tw          140.115.19.24    (Taiwanese server)
  549.     archie.nz                  130.195.9.4      (New Zealand server)
  550.     archie.rediris.es          130.206.1.2      (Spanish Server)
  551.     archie.rutgers.edu         128.6.18.15      (Rutgers University (USA))
  552.     archie.sogang.ac.kr        163.239.1.11     (Korean Server)
  553.     archie.sura.net            128.167.254.195  (SURAnet server MD (USA))
  554.     archie.sura.net(1526)      128.167.254.195  (SURAnet alt. MD (USA))
  555.     archie.switch.ch           130.59.1.40      (Swiss Server)
  556.     archie.th-darmstadt.de     130.83.22.60     (German Server)
  557.     archie.unipi.it            131.114.21.10    (Italian Server)
  558.     archie.univie.ac.at        131.130.1.23     (Austrian Server)
  559.     archie.unl.edu             129.93.1.14      (U. of Nebraska, Lincoln (USA))
  560.     archie.univ-rennes1.fr                      (French Server)
  561.     archie.uqam.ca             132.208.250.10   (Canadian Server)
  562.     archie.wide.ad.jp          133.4.3.6        (Japanese Server)
  563.  
  564. -------------------------------------------------------------------------------
  565.  
  566. Acknowledgements
  567.  
  568. Thanks to the following people for suggestions that help shape this FAQ:
  569.  
  570. Tomasz Surmacz (tsurmacz@asic.ict.pwr.wroc.pl)
  571. Wolfgang Ley (Ley@rz.tu-clausthal.de)
  572. Russel Street (russells@ccu1.auckland.ac.nz)
  573. Gary Mills (mills@CC.UManitoba.CA)
  574. Mirsad Todorovac (mirsad.todorovac@etf.hr)
  575. Nicholas Ironmonger (ndi@sam.math.ethz.ch)
  576. Morten Welinder (terra@diku.dk)
  577. Nick Christenson (npc@minotaur.jpl.nasa.gov)
  578. Mark Hanning-Lee (markhl@romoe.caltech.edu)
  579. Marcus J Ranum <mjr@tis.com>
  580.  
  581. -------------------------------------------------------------------------------
  582.  
  583. Copyright
  584.  
  585. This paper is Copyright (c) 1994, 1995
  586.    by Christopher Klaus of Internet Security Systems, Inc.
  587.  
  588. Permission is hereby granted to give away free copies electronically. You may
  589. distribute, transfer, or spread this paper electronically. You may not pretend
  590. that you wrote it. This copyright notice must be maintained in any copy made.
  591. If you wish to reprint the whole or any part of this paper in any other medium
  592. excluding electronic medium, please ask the author for permission.
  593.  
  594. Disclaimer
  595.  
  596. The information within this paper may change without notice. Use of this
  597. information constitutes acceptance for use in an AS IS condition. There are NO
  598. warranties with regard to this information. In no event shall the author be
  599. liable for any damages whatsoever arising out of or in connection with the use
  600. or spread of this information. Any use of this information is at the user's own
  601. risk.
  602.  
  603. Address of Author
  604.  
  605. Please send suggestions, updates, and comments to:
  606. Christopher Klaus <cklaus@iss.net> of Internet Security Systems, Inc.
  607. <iss@iss.net>
  608.  
  609. Internet Security Systems, Inc.
  610.  
  611. Internet Security Systems, Inc, located in Atlanta, Ga., specializes in the
  612. developement of security scanning software tools. Its flagship product,
  613. Internet Scanner, is software that learns an organization's network and probes
  614. every device on that network for security holes. It is the most comprehensive
  615. "attack simulator" available, checking for over 100 security vulnerabilities.
  616.  
  617. -- 
  618.  
  619.